home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 November: Tool Chest / Dev.CD Nov 98 TC.toast / Sample Code / Networking / GetZoneList / Makefile < prev    next >
Encoding:
Makefile  |  1994-11-18  |  3.4 KB  |  120 lines  |  [TEXT/MPS ]

  1. #     ------------------------------------------------------------------------------
  2. #
  3. #    Apple Macintosh Developer Technical Support
  4. #
  5. #    AppleTalk GetZoneList Sample Application
  6. #
  7. #    CGetZoneList & PGetZoneList
  8. #
  9. #    Makefile    -    Make Source
  10. #
  11. #    Copyright © 1988-1990 Apple Computer, Inc.
  12. #    All rights reserved.
  13. #
  14. #    Versions:    1.00                November 1988
  15. #                1.01                October 1989
  16. #                1.02                May 1990
  17. #                1.03                June 1992
  18. #                1.04                July 1992
  19. #
  20. #    Components:    GetZoneList.c        May 1, 1990
  21. #                GetZoneList.p        May 1, 1990
  22. #                GetZoneList.r        May 1, 1990
  23. #                MakeFile            May 1, 1990
  24. #                UFailure.a            November 1, 1988
  25. #                UFailure.h            November 1, 1988
  26. #                UFailure.inc1.p        November 1, 1988
  27. #                UFailure.p            November 1, 1988
  28. #
  29. #    GetZoneList is a sample application that uses
  30. #    AppleTalk ATP and ZIP to obtain a list of zones
  31. #    on an AppleTalk internet.
  32. #
  33. #    GetZoneList also demonstrates using a signal, or
  34. #    failure-catching mechanism to recover from error
  35. #    situations.  Since C does not allow nested procedures
  36. #    a la Pascal, a few modifications were made to incorporate
  37. #    the failure handling and keep this sample fairly close in
  38. #    design to the Pascal sample.
  39. #    (Gee, thanks a lot M2 for using nested procs. - pvh)
  40. #
  41. #    GetZoneList is based on DTS Sample.c. For more
  42. #    description and explanation of the non-example
  43. #    specific areas of this application, please refer to
  44. #    either Sample.p or TESample.c.
  45. #
  46. #    ------------------------------------------------------------------------------
  47.  
  48. #SymOptions = -sym on                 # sure, why not use symbols.  we've got all day.
  49.  
  50. #    ------------------------------------------------------------------------------
  51. #
  52. #    Build Rules for CGetZoneList
  53. #
  54. #    ------------------------------------------------------------------------------
  55.  
  56. COptions = -r {SymOptions}             # turn on strict prototyping (-r option)
  57.  
  58. # Use these libraries for MPW 3.0/3.1
  59. #CLibs            =    "{CLibraries}"CRuntime.o ∂
  60. #                    "{CLibraries}"CInterface.o ∂
  61. #                    "{Libraries}"Interface.o
  62.  
  63. # Use these libraries for MPW 3.2 or later
  64. CLibs            =    "{Libraries}"Runtime.o ∂
  65.                     "{Libraries}"Interface.o
  66.  
  67. CObjs            =     GetZoneList.c.o ∂
  68.                     UFailure.p.o ∂
  69.                     UFailure.a.o ∂
  70.                     {CLibs}
  71.  
  72. GetZoneList.c.o        ƒƒ    GetZoneList.c Makefile UFailure.h
  73.  
  74. CGetZoneList        ƒƒ    {CObjs} Makefile
  75.     Link {SymOptions} -mf -o {Targ} {CObjs}
  76.     SetFile {Targ} -t APPL -c '????' -a B
  77.  
  78. CGetZoneList        ƒƒ    'GetZoneList.r' Makefile
  79.     Rez -rd -o {Targ} 'GetZoneList.r' -append
  80.  
  81. UFailure.h            ƒ
  82.     IF NOT `Exists UFailure.h`
  83.         Echo "CGetZoneList needs the “UFailure.h” header from SC.012.Signals."
  84.         Exit 1
  85.     END
  86.  
  87. #    ------------------------------------------------------------------------------
  88. #
  89. #    Build Rules for PGetZoneList
  90. #
  91. #    ------------------------------------------------------------------------------
  92.  
  93. POptions = {SymOptions}
  94.  
  95. PObjs            =    GetZoneList.p.o ∂
  96.                     UFailure.p.o ∂
  97.                     UFailure.a.o ∂
  98.                     "{Libraries}"Runtime.o ∂
  99.                     "{Libraries}"Interface.o ∂
  100.                     "{PLibraries}"PasLib.o
  101.  
  102. GetZoneList.p.o        ƒƒ    GetZoneList.p Makefile UFailure.p
  103.  
  104. PGetZoneList        ƒƒ    {PObjs} Makefile
  105.     Link {SymOptions} -mf -o {Targ} {PObjs}
  106.     SetFile {Targ} -t APPL -c '????' -a B
  107.  
  108. PGetZoneList        ƒƒ    GetZoneList.r Makefile
  109.     Rez -rd -o {Targ} GetZoneList.r -append
  110.  
  111. #    ------------------------------------------------------------------------------
  112. #
  113. #    Build Rules for UFailure units
  114. #
  115. #    ------------------------------------------------------------------------------
  116.  
  117. UFailure.p.o        ƒƒ UFailure.p UFailure.inc1.p MakeFile
  118.  
  119. UFailure.a.o        ƒƒ UFailure.a MakeFile
  120.